package com.tinify.loader;

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;

public class ReadProperties {


    private final String propFile;

    public ReadProperties(String propFile) {
        this.propFile = propFile;
    }

    Properties p = new Properties();
    public Properties readProperties() {

        try {
            InputStream inputStream = new FileInputStream(this.propFile);
            if (inputStream != null) {
                p.load(inputStream);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return p;
    }

}